<template>
  <div id="app">
    <div :style="{width: htmlW + 'px'}">
      <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      htmlW: 1356
    }
  },
  mounted () {
    this.htmlW = document.documentElement.clientWidth || document.body.clientWidth
    window.onresize = () => {
      return (() => {
        this.htmlW = document.documentElement.clientWidth || document.body.clientWidth
      })()
    }
    console.log(this.htmlW)
  }
}
</script>
<style lang="scss">
  @import "./assets/styles/scss/global";
</style>
